<table border='1' class="contentTable">
	<tr class="table_head">
		<td>Category name</td>
		<td colspan="6">Actions</td>
	</tr>
	{foreach from=$tree item=node key=cid}
	<tr onmouseover="this.style.backgroundColor='#eee'" onmouseout="this.style.backgroundColor='white'">
		<td>
			{section name=nbsps loop=$node->category_level*6}&nbsp;{/section}<img src='/tmp/categories/{$node->category_image}'>{$node->category_name}<br/>
		</td>
		
		<td {if $node->category_level==1}colspan="6"{/if}>
			<a href="/admin/productcategories/addform/category_id/{$node->category_id}"><img src="{$theme}images/icons/add.png" border="0" alt="Add"/></a>			
		</td>
		{if $node->category_level>1}
		<td>
			<a href="/admin/productcategories/editform/category_id/{$node->category_id}"><img src="{$theme}images/icons/next.png" border="0" alt="Edit"/></a>			
		</td>
		<td>
			<a href="/admin/productcategories/deletebranch/category_id/{$node->category_id}" onclick="if(!confirm('Are you sure?')) return false;"><img src="{$theme}images/icons/remove.png" border="0" alt="Delete"/></a>
		</td>
		<td>
			{if $node->previous_id}<a href="/admin/productcategories/moveup/category_id/{$node->category_id}/nnode_id/{$node->previous_id}"><img src="{$theme}images/icons/up.png" border="0" alt="Up"/></a>{else}&nbsp;{/if}
		</td>
		<td>
			{if $node->next_id}<a href="/admin/productcategories/movedown/category_id/{$node->category_id}/nnode_id/{$node->next_id}"><img src="{$theme}images/icons/down.png" border="0" alt="Down"/></a>{else}&nbsp;{/if}
		</td>	
		<td>
			<a href="/admin/productcategories/moveform/category_id/{$node->category_id}"><img src="{$theme}images/icons/process.png" border="0" alt="Move" width="24" height="24"/></a>
		</td>	
		{/if}
	</tr>	
	{/foreach}
</table>